#include "h_cc2640r2f_define.h"

#include <stdio.h>
#include <stdarg.h>
#include "s_sc_uart.h"
#include "h_cc2640r2f_uart.h"
#include <ti/display/Display.h>

#define H_CC2640R2F_printTxbuff                  S_SC_UART_WriteBuff//H_CC2640R2F_UART_TxBuff

//Display_Handle dispHandle = NULL;
//
//void H_CC2640R2F_DisplayUart_Init(void)
//{
//    dispHandle = Display_open(Display_Type_UART, NULL);
//}
//
//void H_CC2640R2F_UART_Debug(const char* format, ...)
//{
//    Display_doPrintf(dispHandle, 0, 0, format);
//}

void H_CC2640R2F_UART_Debug(const char* format, ...)
{
    va_list arg;
    va_start(arg, format);
    char buf[128];
    unsigned short len;
    len = vsprintf((char*)buf, format, arg);
    H_CC2640R2F_printTxbuff(buf, len);
}
